package info.ask4research.service;

import info.ask4research.model.addons.Addon;
import info.ask4research.model.addons.MultipleChoice;
import info.ask4research.model.addons.QuestionsAndAnswers;
import info.ask4research.model.addons.TextWork;
import info.ask4research.model.addons.UploadingFiles;
import info.ask4research.service.core.AbstractService;

import java.util.List;

public interface IAddonService extends AbstractService<Addon>{

	public boolean textWorkExists(String text, Integer unitOfLearningId);
	public List<TextWork> getTextWorkAddonByUoL(int id);
	public List<UploadingFiles> getUploadingFilesAddonByUoL(int id);
	public List<QuestionsAndAnswers> getQuestionsAnswersAddonByUoL(int id);
	public List<MultipleChoice> getMcTestAddonByUoL(int id);
	public boolean uploadingFilesExists(String text, Integer UnitOfLearningId);
	public boolean qnrExists(String text, Integer UnitOfLearningId);
	public QuestionsAndAnswers getQuestionsAndAnswersById(Integer qnrId);
	public boolean mctExists(String text, Integer attribute);
	public boolean addonNameExists(String stringAddon, Integer UoLId);
	public Addon getAddonByUoFandRoleName(String stringAddon, Integer UoLId);
	public MultipleChoice getMultipleChoiceById(Integer mctId);
	public List<Addon> getAddonsByUoL(int id);
}
